home *** CD-ROM | disk | FTP | other *** search
/ Developer Helper 1: Phil & Dave's Excellent CD / Excellent CD HFS.raw / HyperCard / HyperCard 1.2.2 International / HyperCard Finnish (N-1.2.2) / Pinoja / 1.2.2 Lue minut / 1.2.2 Lue minut / card_10449.txt < prev    next >
Text File  |  1989-02-02  |  2KB  |  68 lines

  1. -- card: 10449 from stack: in.2 Lue minut
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 5683
  5. -- name: selectedLine
  6.  
  7.  
  8. -- part contents for background part 7
  9. ----- text -----
  10. selectedLine
  11.  
  12. -- part contents for background part 9
  13. ----- text -----
  14. Uusia HyperTalkin funktioita
  15. Kortti: 9/10
  16.  
  17.  
  18. -- part contents for background part 11
  19. ----- text -----
  20. selectedLine palauttaa sen rivin, jolla kulloinkin aktivoituna olevat merkit sijaitsevat.  Jos mit√§√§n ei ole aktivoituna, se palauttaa tyhjan merkki-jonon. Huomaa, ett√§ rivinvaihto-merkki m√§√§rit-telee rivin, ei rivin siirto. Siirtyv√§n rivin, joka esitet√§√§n kahdella rivill√§, HyperTalk k√§sitt√§√§ yhdeksi riviksi.
  21.  
  22.  
  23. -- part contents for background part 10
  24. ----- text -----
  25. ei mit√§√§n
  26.  
  27. -- part contents for background part 8
  28. ----- text -----
  29. the selectedLine
  30.  
  31. -- part contents for background part 31
  32. ----- text -----
  33. Select
  34. selectedChunk
  35. selectedField
  36. selectedText
  37. Uusia synonyymej√§
  38.  
  39.  
  40. -- part contents for background part 17
  41. ----- text -----
  42. --after the following commands execute
  43. select char 20 to 35 of fld 3
  44. put the selectedLine
  45. --you might see the following result:
  46. line 4 of bkgnd field 3
  47.  
  48. --a simple line selection handler for fields:
  49. on mouseUp
  50.   set lockText of me to FALSE
  51.   click at the clickLoc
  52.   select the selectedLine
  53.   ...maybe do something with it here...
  54.   set lockText of me to TRUE
  55. end mouseUp
  56.  
  57.  
  58. -- part contents for background part 18
  59. ----- text -----
  60. on selectedLineDemo
  61. --show the selectedLine:
  62.  
  63.    cleanEnter -- in script of this background
  64.    select char 20 to 25 of field "section"
  65.    put the selectedLine
  66.    wait 4 seconds
  67.    cleanExit -- in script of this background
  68. end selectedLineDemo